<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '登录';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sign-overlay"></div>
<div class="signpanel"></div>

<div class="panel signin">
    <div class="panel-heading">
        <h4 class="panel-title">博客后台管理系统</h4>
    </div>
    <!-- <div class="panel-body">
      <button class="btn btn-primary btn-quirk btn-fb btn-block">联系我们</button>
      <div class="or">or</div>
    </div> -->
    <div class="panel-body">
      <!-- <button class="btn btn-primary btn-quirk btn-fb btn-block">联系我们</button> -->
      <div class="or">or</div>
        <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>

        <!-- 用户名 -->
            <?= $form->field($model, 'username',[
                'inputOptions'=>[
                    'placeholder'=>'请输入账户',
                ],
                'inputTemplate'=>
                    '<div  class="input-group">
                        <span class="input-group-addon"><i class="fa fa-user"></i></span>{input}
                    </div>'
            ])->label(false)?>

        <!-- 密码 -->
            <?= $form->field($model, 'password',
            [
                'inputOptions'=>[
                    'placeholder'=>'请输入密码',
                ],
                'inputTemplate'=>
                    '<div  class="input-group">
                        <span class="input-group-addon"><i class="fa fa-lock"></i></span>{input}
                    </div>'
            ])->passwordInput()->label(false) ?>
          
            <div>
                <?= $form->field($model, 'rememberMe')->checkbox() ?> 
                <a href="#" class='forgot'>忘记密码?</a>
            </div>

            <div class="form-group">
                <?= Html::submitButton('登陆', ['class' => 'btn btn-primary btn-success btn-quirk btn-block', 'name' => 'login-button']) ?>
            </div>

            <div class='form-group'>
                <a href="#" class='btn btn-default btn-quirk btn-stroke btn-stroke-thin btn-block'>注册新用户</a>
            </div>
        <!-- 其它登陆方式 -->
            <div class="form-group">
                <div class="col-md-12">
                    <label>其他方式登录:&nbsp;</label>
                    <div class="inline-block">
                        <a href="../qqlogin.php"><img src="/statics/images/QQ.ico" alt=""></a>
                        <a href=" https://open.weixin.qq.com/connect/qrconnect?appid=wx3e5f45bf0c600392&redirect_uri=http%3A%2F%2Fwww.key4math.com%3Fconnect%3Dwechat%26action%3Dcallback&response_type=code&scope=snsapi_login&state=dbec2b4cbf28bb3429a3c5b3bda44cbf#wechat_redirect"><img src="/statics/images/WX.ico" alt=""></a>
                    </div>
                </div>
            </div>

            <?php ActiveForm::end();?>

            <hr class="invisible">
    </div>
</div><!-- panel -->
  